package cn.tsoft.vo;

import android.os.Parcel;
import android.os.Parcelable;

public class Trade implements Parcelable{
	
	//���ױ�� (�������Ľ��ױ��)
	private String tid;
	private String buyer_nick;
	private String created;
	private String pay_time;
	private String end_time;
	private String modified;
	//�������
	private String buyer_message;
	//���ҷ���ʱ�䡣��ʽ:yyyy-MM-dd HH:mm:ss
	private String consign_time;
	//��Ʒ����Ʒ�۸�����������ܽ���
	private String total_fee;
	private String status;
	//ʵ�����
	private String payment;
	//��Ʒ���
	private String order_titile;
	
	private String num_iid;
	//����
	private String price;
	//��������
	private int num;
	//��ƷͼƬ���·��
	private String pic_path;
	//�����Ƿ�������
	private String seller_rate;
	//����Ƿ�������
	private String buyer_rate;

	//�ջ�����Ϣ
	private String receiver_name;
	private String receiver_state;
	private String receiver_city;
	private String receiver_district;
	private String receiver_address;
	private String receiver_zip;
	private String receiver_mobile;
	private String receiver_phone;
	public static final Parcelable.Creator<Trade> CREATOR = new Creator<Trade>() {   
        public Trade createFromParcel(Parcel source) {   
        	Trade trade = new Trade();   
        	trade.buyer_message = source.readString();
        	trade.buyer_nick = source.readString();
        	trade.buyer_rate = source.readString();
        	trade.created = source.readString();
        	trade.end_time = source.readString();
        	trade.payment = source.readString();
        	trade.pic_path = source.readString();
        	trade.price = source.readString();
        	trade.num_iid = source.readString();
        	trade.seller_rate = source.readString();
        	trade.status = source.readString();
        	trade.num = source.readInt();
        	trade.order_titile = source.readString();
        	
        	trade.consign_time = source.readString();
        	trade.pay_time = source.readString();
        	trade.tid = source.readString();
        	trade.total_fee = source.readString();
        	trade.modified = source.readString();
        	
        	trade.receiver_address = source.readString();
        	trade.receiver_city = source.readString();
        	trade.receiver_district = source.readString();
        	trade.receiver_mobile = source.readString();
        	trade.receiver_name = source.readString();
        	trade.receiver_phone = source.readString();
        	trade.receiver_state = source.readString();
        	trade.receiver_zip = source.readString();
            return trade;   
        }   
        public Trade[] newArray(int size) {   
            return new Trade[size];   
        }   
    }; 
	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		dest.writeString(this.buyer_message);
		dest.writeString(this.buyer_nick);
		dest.writeString(this.buyer_rate);
		dest.writeString(this.created);
		dest.writeString(this.end_time);
		dest.writeString(this.payment);
		dest.writeString(this.pic_path);
		dest.writeString(this.price);
		dest.writeString(this.num_iid);
		dest.writeString(this.seller_rate);
		dest.writeString(this.status);
		dest.writeInt(this.num);
		dest.writeString(this.order_titile);
		dest.writeString(this.consign_time);
		dest.writeString(this.pay_time);
		dest.writeString(this.tid);
		dest.writeString(this.total_fee);
		dest.writeString(this.modified);
		
		dest.writeString(this.receiver_address);
		dest.writeString(this.receiver_city);
		dest.writeString(this.receiver_district);
		dest.writeString(this.receiver_mobile);
		dest.writeString(this.receiver_name);
		dest.writeString(this.receiver_phone);
		dest.writeString(this.receiver_state);
		dest.writeString(this.receiver_zip);
	}
	public String getBuyer_message() {
		return buyer_message;
	}
	public void setBuyer_message(String buyer_message) {
		this.buyer_message = buyer_message;
	}
	public String getEnd_time() {
		return end_time;
	}
	public void setEnd_time(String end_time) {
		this.end_time = end_time;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getBuyer_nick() {
		return buyer_nick;
	}
	public void setBuyer_nick(String buyer_nick) {
		this.buyer_nick = buyer_nick;
	}
	public String getCreated() {
		return created;
	}
	public void setCreated(String created) {
		this.created = created;
	}
	public String getPrice() {
		return price;
	}
	public void setPrice(String price) {
		this.price = price;
	}
	public String getNum_iid() {
		return num_iid;
	}
	public void setNum_iid(String num_iid) {
		this.num_iid = num_iid;
	}
	public String getPic_path() {
		return pic_path;
	}
	public void setPic_path(String pic_path) {
		this.pic_path = pic_path;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public String getPayment() {
		return payment;
	}
	public String getOrder_titile() {
		return order_titile;
	}
	public void setOrder_titile(String order_titile) {
		this.order_titile = order_titile;
	}
	public void setPayment(String payment) {
		this.payment = payment;
	}
	public String getSeller_rate() {
		return seller_rate;
	}
	public void setSeller_rate(String seller_rate) {
		this.seller_rate = seller_rate;
	}
	public String getBuyer_rate() {
		return buyer_rate;
	}
	public void setBuyer_rate(String buyer_rate) {
		this.buyer_rate = buyer_rate;
	}
	public static Parcelable.Creator<Trade> getCreator() {
		return CREATOR;
	}
	public String getTid() {
		return tid;
	}
	public void setTid(String tid) {
		this.tid = tid;
	}
	public String getPay_time() {
		return pay_time;
	}
	public void setPay_time(String pay_time) {
		this.pay_time = pay_time;
	}
	public String getModified() {
		return modified;
	}
	public void setModified(String modified) {
		this.modified = modified;
	}
	public String getConsign_time() {
		return consign_time;
	}
	public void setConsign_time(String consign_time) {
		this.consign_time = consign_time;
	}
	public String getTotal_fee() {
		return total_fee;
	}
	public void setTotal_fee(String total_fee) {
		this.total_fee = total_fee;
	}
	public String getReceiver_name() {
		return receiver_name;
	}
	public void setReceiver_name(String receiver_name) {
		this.receiver_name = receiver_name;
	}
	public String getReceiver_state() {
		return receiver_state;
	}
	public void setReceiver_state(String receiver_state) {
		this.receiver_state = receiver_state;
	}
	public String getReceiver_city() {
		return receiver_city;
	}
	public void setReceiver_city(String receiver_city) {
		this.receiver_city = receiver_city;
	}
	public String getReceiver_district() {
		return receiver_district;
	}
	public void setReceiver_district(String receiver_district) {
		this.receiver_district = receiver_district;
	}
	public String getReceiver_address() {
		return receiver_address;
	}
	public void setReceiver_address(String receiver_address) {
		this.receiver_address = receiver_address;
	}
	public String getReceiver_zip() {
		return receiver_zip;
	}
	public void setReceiver_zip(String receiver_zip) {
		this.receiver_zip = receiver_zip;
	}
	public String getReceiver_mobile() {
		return receiver_mobile;
	}
	public void setReceiver_mobile(String receiver_mobile) {
		this.receiver_mobile = receiver_mobile;
	}
	public String getReceiver_phone() {
		return receiver_phone;
	}
	public void setReceiver_phone(String receiver_phone) {
		this.receiver_phone = receiver_phone;
	}
	
}
